@echo off
set JRE_HOME=c:\Program Files (x86)\Java\jre7
set MY_ROOT_PATH=C:\Users\Delphine\Documents\Ben\NetBeansProjects\trunk\leboncoinBatch
set MY_LIB_PATH=%MY_ROOT_PATH%\dist\lib
set CLASSPATH=.
rem set CLASSPATH=%CLASSPATH%;%MY_ROOT_PATH%\conf
set CLASSPATH=%CLASSPATH%;%MY_LIB_PATH%\activation.jar
set CLASSPATH=%CLASSPATH%;%MY_LIB_PATH%\commons-codec-1.4.jar
set CLASSPATH=%CLASSPATH%;%MY_LIB_PATH%\commons-email-1.2.jar
set CLASSPATH=%CLASSPATH%;%MY_LIB_PATH%\commons-logging-1.1.1.jar
set CLASSPATH=%CLASSPATH%;%MY_LIB_PATH%\eclipselink.jar
set CLASSPATH=%CLASSPATH%;%MY_LIB_PATH%\httpclient-4.1.2.jar
set CLASSPATH=%CLASSPATH%;%MY_LIB_PATH%\httpclient-cache-4.1.2.jar
set CLASSPATH=%CLASSPATH%;%MY_LIB_PATH%\httpcore-4.1.2.jar
set CLASSPATH=%CLASSPATH%;%MY_LIB_PATH%\httpmime-4.1.2.jar
set CLASSPATH=%CLASSPATH%;%MY_LIB_PATH%\javax.mail.jar
set CLASSPATH=%CLASSPATH%;%MY_LIB_PATH%\javax.persistence_2.1.0.v201304241213.jar
set CLASSPATH=%CLASSPATH%;%MY_LIB_PATH%\jsoup-1.6.1-javadoc.jar
set CLASSPATH=%CLASSPATH%;%MY_LIB_PATH%\jsoup-1.6.1-sources.jar
set CLASSPATH=%CLASSPATH%;%MY_LIB_PATH%\jsoup-1.6.1.jar
set CLASSPATH=%CLASSPATH%;%MY_LIB_PATH%\junit-4.10.jar
set CLASSPATH=%CLASSPATH%;%MY_ROOT_PATH%\dist\leboncoinBatch.jar
set CLASSPATH=%CLASSPATH%;%MY_LIB_PATH%\leboncoinPersistence.jar
set CLASSPATH=%CLASSPATH%;%MY_LIB_PATH%\mysql-connector-java-5.0.8-bin.jar
set CLASSPATH=%CLASSPATH%;%MY_LIB_PATH%\org.eclipse.persistence.jpa.jpql_2.5.1.v20130918-f2b9fc5.jar
REM java -cp %MY_LIB_PATH%\activation.jar;%MY_LIB_PATH%\commons-codec-1.4.jar;%MY_LIB_PATH%\commons-email-1.2.jar;%MY_LIB_PATH%\commons-logging-1.1.1.jar;%MY_LIB_PATH%\httpclient-4.1.2.jar;%MY_LIB_PATH%\httpclient-cache-4.1.2.jar;%MY_LIB_PATH%\httpcore-4.1.2.jar;%MY_LIB_PATH%\httpmime-4.1.2.jar;%MY_LIB_PATH%\javax.mail.jar;%MY_LIB_PATH%\jsoup-1.6.1-javadoc.jar;%MY_LIB_PATH%\jsoup-1.6.1-sources.jar;%MY_LIB_PATH%\jsoup-1.6.1.jar;%MY_LIB_PATH%\junit.jar;%MY_LIB_PATH%\leboncoin.jar;%MY_LIB_PATH%\selenium-java-client-driver-sources.jar;%MY_LIB_PATH%\selenium-java-client-driver-test-sources.jar;%MY_LIB_PATH%\selenium-java-client-driver-tests.jar;%MY_LIB_PATH%\selenium-java-client-driver.jar;%MY_LIB_PATH%\org.hamcrest.core_1.1.0.v20090501071000.jar org.junit.runner.JUnitCore com.leboncoin.batch.DaySearch
cd /d %MY_ROOT_PATH%
rem "%JRE_HOME%\bin\java" -classpath %CLASSPATH% -Djava.util.logging.config.file="%MY_ROOT_PATH%\conf\logging.properties" org.junit.runner.JUnitCore com.leboncoin.batch.DaySearch
"%JRE_HOME%\bin\java" -classpath %CLASSPATH% com.leboncoin.batch.DaySearch
